package com.gh.cloud.user.fegin;

import com.gh.cloud.user.fegin.fallback.ProductFeignFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: guohao
 * @date: 2021-02-01 17:52
 **/
@FeignClient(name = "product-server",fallbackFactory = ProductFeignFallBackFactory.class)
public interface ProductFeign {

    @GetMapping("/product/getProductById/{id}")
    String getProductById(@PathVariable String id);

}
